# coding=utf-8
# 全世界最帅的帅哥
from ysgg1_club_oss.service.file_service import FileService
from ysgg1_club_oss.nacos_client import client
from ysgg1_club_oss.config.nacos_config import NacosConfig
import json


def test_minio():
    file_service = FileService().storage_service()
    all_bucket = file_service.get_all_bucket()
    return all_bucket


def test_nacos():
    data = json.loads(client.get_config(NacosConfig.DATA_ID, NacosConfig.GROUP)).get(
            "STORAGE_SERVICE_TYPE", "minio")
    return data
